package com.yunbao.project.basedata.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 仓库列表
 * </p>
 *
 * @author 安能
 * @since 2019-09-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class StorageList implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品id
     */
    private Integer goodsId;

    /**
     * 期初货存
     */
    private Integer openingStock;

    /**
     * 当前货存
     */
    private Integer currentStock;

    /**
     * 成本价
     */
    private BigDecimal costPrice;

    /**
     * 库存总额
     */
    private BigDecimal grossAmount;

    /**
     * 仓库id
     */
    private Integer storageId;

    /**
     * 逻辑删除{0:删除,1:未删除}
     */
    @TableLogic
    private Integer deleted;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
